<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/24
 * Time: 17:27
 */
class student
{
    public $name;
    public $gender;
    public $age;
  private $zongshu;
  private $aihao;

    function __construct($name,$gender,$age)
    {

        $this->name = $name;
        $this->gender = $gender;
        $this->age = $age;
        echo "进入了".__CLASS__."的构造方法";
    }



    function zongshu(){
        echo "有{$this->zongshu}学生";
    }



}